package org.apache.myfaces.orchestra.examples.model.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.apache.myfaces.orchestra.examples.model.po.Item;

import java.util.List;

public class ItemDao extends HibernateDaoSupport
{
	private List all;

	public void save(Item item)
	{
		getHibernateTemplate().save(item);
	}

	public List getAll()
	{
		return getHibernateTemplate().loadAll(Item.class);
	}
}
